﻿@model IEnumerable<TaoNiuOA.Models.WorkTime>
@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}
<fieldset>
    <legend><a href="../Workday/Index">工作时间</a> | 工作时间生成设置</legend>
    <br />
    <table>
        <tr>
            <th>
                星期
            </th>
            <th>
                上班时间
            </th>
            <th>
                下班时间
            </th>
            <th>
                操作
            </th>
        </tr>
        @foreach (var item in Model)
        {
            <tr>
                <td>
                    @Html.DisplayFor(modelItem => item.DayOfWeek)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.OnWork)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.OffWork)
                </td>
                <td>
                    @Html.ActionLink("编辑", "Edit", new { id = item.WeekTimeID })
                </td>
            </tr>
        }
    </table>
</fieldset>
